< previous page page_256 next page >

Page 256
(table continued from previous page)
PropertyDescription
CursorLocationThis property determines where the cursor is located. It can be set to either the client side or server side. If you place the cursor on the client side, youll get an additional structure on your workstation to handle the movement through the recordset. If you place the cursor on the server side, this information will stay on the server. There are pluses and minuses to both of these methods. If you have the cursor on the workstation, youll cause more network traffic. If you leave it on the server, your server can become overburdened. There is no easy answer here, so you need to be able to change this as your application warrants.
EOFActionThis property determines what happens when you scroll to the last real record in the recordset. You can set it to 0-MoveLast (the default), or you can set it to 1-EOF or 2-AddNew. If set it to 1-EOF, the user will be left with a blank record on the screen. If its set to 2-AddNew, the user can enter a new record and then press any of the other record movement buttons to save that record.
ModeThere are many different modes you can set for this database connection. For example, you can open the data source for read-only or exclusive use. See the online help for more information.
OrientationThis property allows you to orient the data control vertically or horizontally.
PasswordThis is the password youll use to log into the data source. This property might not be required, depending on the data source.
RecordSourceThis property can be filled in with the name of a table or query. It may also be a SQL SELECT statement.
UserNameThis is the login ID youll use to log into the data source. This property might not be required, depending on the data source.

Using the Data Control
Lets now discuss how to add a data control to the Employee Information form and connect it to the text boxes and check boxes on the form. The idea is to connect a table in a database directly to the text boxes and other controls on your form so you dont have to write a lot of code to be able to interact with the database. After you finish hooking up the text boxes and check boxes, your form should look like the one shown in Figure 12.12 when you run it.

 
< previous page page_256 next page >

If you like this book, buy it!